<?php
/**
 * Notes:
 * User: wudg <544038230@qq.com>
 * Date: 2025/7/22 10:49
 */

namespace App\Service\System;


use App\Dao\Sys\SysIndustryDao;
use Hyperf\Di\Annotation\Inject;

class SysIndustryService
{

    #[Inject]
    protected SysIndustryDao $sysIndustryDao;

    public function getIndustry()
    {
        $sysIndustryData = $this->sysIndustryDao->getAllIndustry();

        foreach($sysIndustryData as &$industry)
        {
            $industry['category_data'] = json_decode($industry['category_data'], true);
        }

        return $sysIndustryData;
    }
}